export const debounce = (func) => { // 防抖函数
  let timer = null
  return function () {
    timer && clearTimeout(timer)
    timer = setTimeout(() => {
      func.apply(this)
    }, 200)
  }
}
